package com.wilmer.ys.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 饮水量图表数据对象 child_ys
 *
 * @author ruoyi
 * @date 2024-04-26
 */
public class ChildYs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 孩子id */
    @Excel(name = "孩子id")
    private Long childId;

    /** 父母id */
    @Excel(name = "父母id")
    private Long userId;

    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date datetime;

    /** 饮水量 */
    @Excel(name = "饮水量")
    private Long ys;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setChildId(Long childId)
    {
        this.childId = childId;
    }

    public Long getChildId()
    {
        return childId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public void setYs(Long ys)
    {
        this.ys = ys;
    }

    public Long getYs()
    {
        return ys;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("childId", getChildId())
                .append("userId", getUserId())
                .append("datetime", getDatetime())
                .append("ys", getYs())
                .toString();
    }
}